<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
     <%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
     <%@taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
     <%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
     <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="/OnOffLine/js/external/jquery-1.7.1.js"></script>
<script type="text/javascript" src="/OnOffLine/js/offline.js"></script>
<script type="text/javascript" src="/OnOffLine/js/db.js"></script>
<title>View</title>
<link rel="stylesheet" type="text/css" href="/OnOffLine/css/style.css" />
</head>

<body id="my_blogs">

<div class="top-menu">
 <div class="left-item"><a href="/OnOffLine/">OnOffLine</a></div>
  
 <div class="right-item">  
  <div class="center-block"><a id="createtop" title="Create new note" href="/OnOffLine/blog.do?method=create"><img alt="create new note" src="/OnOffLine/images/mail.png" /></a><a class="createtop_offline x-hidden" href="/OnOffLine/jsp/create.jsp"></a></div>
  <div class="right-block"><a href="#">sign out</a></div>
 </div>
</div>


<div class="main">

 <div class="left">
  <img class="logo" src="/OnOffLine/images/logo2.png" alt="logo" />
  <img class="ico-pencil" src="/OnOffLine/images/pencil.png" alt="logo" />
    
  <ul class="left-menu">
   <li><a id="myblogs" class="link" href="/OnOffLine/blog.do?method=myBlogs">my notes</a><a class="myblogs_offline x-hidden" href="/OnOffLine/jsp/my_blogs.jsp"></a></li>
   <li><a id="create" class="link" href="/OnOffLine/blog.do?method=create">create</a><a class="create_offline x-hidden" href="/OnOffLine/jsp/create.jsp"></a></li>
  </ul>
 </div>
 
 <div class="right">
  <div class="inner">
   <html:form action="blog.do?method=delete" method="POST" >
    <div class="note-item">
     <span class="icon"><img src="/OnOffLine/images/attachment.png" /></span>
     <span class="title"><bean:write name="blogForm" property="blogOne.title"/></span>
     <span class="date">Created on 11.04.2012</span>
     
     <div class="formRow">
     <input class="button blue small" type="button" value="Edit" onclick="location.href='/OnOffLine/blog.do?method=edit&id=<bean:write name="blogForm" property="blogOne.idBlog"/>'" />
        
							<html:link styleClass="button black small" href="/OnOffLine/blog.do?method=delete">Delete</html:link>
     </div>
      
     <div class="description">
      <bean:write name="blogForm" property="blogOne.description"/>
     </div> 
    </div>
   </html:form>
  </div>
 </div>
</div>

</body>
</html>